package file_ru_chu;

import java.io.IOException;
import java.util.List;

public class Student extends Fulei {
	String choice,choice2;
	List b;
	Student(String sum,String name,String sex) {
		this.num=sum;
		this.name=name;
		this.sex=sex;
		classs="未选择课程";
	}
	public void show2(List b) throws IOException {
		this.b=b;
		if(b.size()<1) {
			System.out.println("未选择课程");
		}
		else {
			classs="";
			for(int i=0;i<b.size();i++) {
				List a = (List)b.get(i);
				classs+=(String)a.get(1)+"、";
				System.out.println("编号："+a.get(0)+"  课程名称："+a.get(1)+
						"  上课地点："+a.get(2)+"  上课时间："+a.get(3)+
						"  授课教师："+a.get(4));
			}
		classs=classs.substring(0,classs.length()-1);
		}
	}
}
